import request from '@/utils/request'

// 新增招标项目
export function addBiddingMiddle(data) {
  return request({
    url: '/bidding/middle/addBiddingMiddle',
    method: 'post',
    data: data
  })
}

// 查询招标项目
export function showAllByMiddleNumberName(query) {
  return request({
    url: '/bidding/middle/showAllByMiddleNumberName',
    method: 'get',
    params:query
  })
}

// 根据id查询招标项目
export function showAllByMiddleMainById(query) {
  return request({
    url: '/bidding/middle/showAllByMiddleMainById',
    method: 'post',
    data:query
  })
}

// 审核通过
export function examinePassThrough(query) {
  return request({
    url: '/bidding/middle/examinePassThrough',
    method: 'post',
    data:query
  })
}

//根据报名供应商查询回显数据
export function selApplicationGys(query) {
  return request({
    url: '/bidding/middle/selApplicationGys',
    method: 'post',
    data:query
  })
}

//供应商参加或取消招标
export function isApplicationGys(query) {
  return request({
    url: '/bidding/middle/isApplicationGys',
    method: 'post',
    data:query
  })
}

//专家评标弹框数据
export function selByMiddleIdExpert(query) {
  return request({
    url: '/bidding/middle/selByMiddleIdExpert',
    method: 'post',
    data:query
  })
}

//专家评标提交数据
export function expertEvaluation(query) {
  return request({
    url: '/bidding/expert/expertEvaluation',
    method: 'post',
    data:query
  })
}

//测试
export function ceShi() {
  return request({
    url: '/bidding/remainDone/ceShi',
    method: 'get',
  })
}